<template>
  <div class="scroll-top" @click="returnTop">
    <div class="box-in"></div>
  </div>
</template>

<script>
export default {
    name: 'scroll-top',
    components: {},
    props: {},
    data () {
      return {}
    },
    computed: {},
    watch: {},
    created () {},
    methods: {
      returnTop() {
        document.documentElement.scrollTop = document.body.scrollTop = 0
      }
    }
}
</script>
<style lang="scss" scoped>
@import '@/assets/css/scroll-top.scss';
</style>